Optimal. Leaf size=107 \[ \frac {19 \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {13 \sin (c+d x)}{16 a d (a \cos (c+d x)+a)^{3/2}}+\frac {\sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2758, 2750, 2649, 206} \[ \frac {19 \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {13 \sin (c+d x)}{16 a d (a \cos (c+d x)+a)^{3/2}}+\frac {\sin (c+d x)}{4 d (a \cos (c+d x)+a)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rule 2750
Rule 2758
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x)}{(a+a \cos (c+d x))^{5/2}} \, dx &=\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2}}+\frac {\int \frac {-\frac {5 a}{2}+4 a \cos (c+d x)}{(a+a \cos (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2}}-\frac {13 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2}}+\frac {19 \int \frac {1}{\sqrt {a+a \cos (c+d x)}} \, dx}{32 a^2}\\ &=\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2}}-\frac {13 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2}}-\frac {19 \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{16 a^2 d}\\ &=\frac {19 \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \cos (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {\sin (c+d x)}{4 d (a+a \cos (c+d x))^{5/2}}-\frac {13 \sin (c+d x)}{16 a d (a+a \cos (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.13, size = 103, normalized size = 0.96 \[ \frac {-18 \sin (c+d x)-13 \sin (2 (c+d x))-152 \cos ^5\left (\frac {1}{2} (c+d x)\right ) \left (\log \left (\cos \left (\frac {1}{4} (c+d x)\right )-\sin \left (\frac {1}{4} (c+d x)\right )\right )-\log \left (\sin \left (\frac {1}{4} (c+d x)\right )+\cos \left (\frac {1}{4} (c+d x)\right )\right )\right )}{32 d (a (\cos (c+d x)+1))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.04, size = 188, normalized size = 1.76 \[ \frac {19 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{3} + 3 \, \cos \left (d x + c\right )^{2} + 3 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {a} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 4 \, \sqrt {a \cos \left (d x + c\right ) + a} {\left (13 \, \cos \left (d x + c\right ) + 9\right )} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.86, size = 103, normalized size = 0.96 \[ \frac {\sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} {\left (\frac {2 \, \sqrt {2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{3}} - \frac {11 \, \sqrt {2}}{a^{3}}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {19 \, \sqrt {2} \log \left ({\left | -\sqrt {a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} \right |}\right )}{a^{\frac {5}{2}}}}{32 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 174, normalized size = 1.63 \[ \frac {\sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (19 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-13 \sqrt {a}\, \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\right )}{32 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} a^{\frac {7}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\cos \left (c+d\,x\right )}^2}{{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________